package cn.tedu.car.backend.vehicleStation.mapper;

import cn.tedu.car.backend.vehicleStation.pojo.dto.VehicleBindDTO;
import cn.tedu.car.backend.vehicleStation.pojo.dto.VehicleQuery;
import cn.tedu.car.backend.vehicleStation.pojo.vo.VehicleVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface VehicleMapper1 {
    //绑定车辆方法
    void bindVehicle(VehicleBindDTO vehicleBindDTO);
    //根据车辆id解绑车辆方法
    int unbindVehicle(Long id);
    //查询可用车辆数量方法
    Integer usableVehicleCount(Long id);
    //查询可绑定车辆的方法
    List<VehicleVO> getVehicle(VehicleQuery vehicleQuery);
    List<VehicleVO> getBindVehicle(Long stationId);
    //根据站点id解绑车辆方法
    Integer removeBindVehicle(Long id);
}
